﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NHibernate;
using DotNet.Common.NHibernateUtil;
using ZLCMS.Business.Util;
using ZLCMS.Data.Model;
using ZLCMS.Web.Wap.Code;
using NHibernate.Criterion;

namespace ZLCMS.Web.MemberUser
{
        public partial class Comment : WebMemberPageBase
        {
                protected ShopProductInfo Product { get; set; }

                protected void Page_Load(object sender, EventArgs e)
                {
                        using (ISession session = SessionFactoryHelper.CreateSession())
                        {
                                Product = session.CreateQuery("from ShopProductInfo where ProductNo=:no")
                                    .SetParameter("no", Request["no"])
                                    .UniqueResult<ShopProductInfo>();
                        }
                        if (Product == null)
                        {
                                Response.Redirect("memberuser/waitforcommentprolist.aspx");
                        }
                }
        }
}